package com.leyou.comment.repository;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.leyou.comment.pojo.Comment;

public interface CommentRepository extends MongoRepository<Comment,String>{
    Page<Comment> findBySkuId(Pageable pageable, Long skuId);

    Page<Comment> findBySpuId(Pageable pageable,Long spuId);




}
